package com.gsafety.wellsfort.common.enums;

import lombok.Getter;

@Getter
public enum ResourceScope {
    WHOLE(0,"全部"),
    PUBLIC(1,"公共"),
    PERSONAL(2,"个人");
    public Integer	value;
    public String	label;
    ResourceScope(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public static ResourceScope parseVal(Integer value){
        ResourceScope[] enums = ResourceScope.values();
        for(ResourceScope s : enums){
            if(s.getValue().intValue() == value.intValue()){
                return s;
            }
        }
        return null;
    }
}
